//
//  KKDetailViewController.swift
//  SinaWeiBo
//
//  Created by King.Kong. on 16/5/22.
//  Copyright © 2016年 King.Kong. All rights reserved.
//

import UIKit

class KKDetailViewController: UIViewController {

    
    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.whiteColor()
//        self.title = "\(navigationController?.childViewControllers.count ?? 0)"

//        navigationItem.leftBarButtonItem =  UIBarButtonItem(imageName: "navigationbar_back_withtext", title: "返回", target: self, action: #selector(KKDetailViewController.pop))
//
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "next", style: .Plain, target: self, action: #selector(next))
        
    }
    
    @objc private func next() {
        
        navigationController?.pushViewController(KKDetailViewController(), animated: true)
    }
    
//    @objc private func pop() {
//        
//        navigationController?.popViewControllerAnimated(true)
//    }
}
